/**
 * Created by wuhuan on 15/12/4.
 */
// 所有模块都通过 define 来定义
define(function (require, exports, module) {

    var Model = require('/plugins/extend/Model');


    $("#cardidForm").validate({
        rules: {
            'realName': {
                required: true,
                chinaName:[1,16]
            },
            'cardId': {
                required: true,
                isIdCardNo:true/*,
                remote: {
                    type: "get",
                    url: "",
                    dataType: "json",
                    data: {
                        userName: function () {
                            return $("#cardId").val();
                        }
                    }
                }*/
            },
        },
        messages: {
            'realName': {
                required: "请输入姓名",
                chinaName:"请正确输入您的姓名"
            },
            'cardId': {
                required: "请输入身份证"
            }
        },
        submitHandler: function (form, event, validator) {
            $(form).submit();
        }
    });

});